package com.yueman.ptoolopenticket.ticket.controller;

import com.yueman.ptoolopenticket.ticket.TicketService.CommonFileService;
import com.yueman.ptoolopenticket.ticket.dto.Result;
import com.yueman.ptoolopenticket.ticket.dto.request.lixin.RealNameAuthReq;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@CrossOrigin
@Slf4j
@RequestMapping(value = "/upload")
public class CommonUploadController {
    @Autowired
    CommonFileService commonFileService;

    @RequestMapping(value = "uploadFile")
    @SneakyThrows
    private Result MultFile(RealNameAuthReq realNameAuthReq) {
          return commonFileService.rnameAuth(realNameAuthReq);
    }


}
